import 'PriceParm.dart';
import 'PricePart.dart';

class PriceModel{
  String id="";
  String name="";
  String createTime="";
  String updateTime="";

  String parentId="";
  List parmList=[];
  String type="";
  List priceModels=[];
  List priceParts=[];
  PriceModel();

  PriceModel.fromJson(Map<String,dynamic> json){
    id=json["id"]??"";
    createTime=json["createTime"]??"";
    name=json["name"]??"";
    updateTime=json["updateTime"]??"";
    type=json["type"]??"";
    parentId=json["parentId"]??"";
    name=json["name"]??"";
    var parmJson=json["parmList"];
    var partJson=json["priceParts"];
    var modelJson=json["priceModels"];
    for(var item in partJson){
      PricePart part=PricePart.fromJson(item);
      priceParts.add(part);
    }
    for(var item in parmJson){
      PriceParm parm=PriceParm.fromJson(item);
      parmList.add(parm);
    }
    for(var item in modelJson){
      PriceModel model=PriceModel.fromJson(item);
      priceModels.add(model);
    }
  }

}